package com.qyhl.module_home.utils;

import android.content.Context;
import androidx.viewpager.widget.ViewPager;
import android.util.AttributeSet;

/**
 * Created by Administrator on 2018/3/20.
 * 没有滑动效果的ViewPage
 */

public class HomeMainViewPager extends ViewPager {

    public HomeMainViewPager(Context context) {
        this(context, null);
    }

    public HomeMainViewPager(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public void setCurrentItem(int item) {
        super.setCurrentItem(item, false);
    }
}
